<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html 	xmlns="http://www.w3.org/1999/xhtml"  
    	xmlns:h="http://java.sun.com/jsf/html"  
    	xmlns:f="http://java.sun.com/jsf/core"  
    	xmlns:p="http://primefaces.org/ui"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
      	xmlns:a4j="http://richfaces.org/a4j"> 

<h:head><p:panel id="titlePanel" header="Elimina un pacchetto"></p:panel></h:head> 
<body> 
	<p:carousel id="pacchettiCarousel" value="#{pacchettoBean.listaPacchetti}" var="pacchettoDTO">  
	    <f:facet name="header">  
	            Pacchetti disponibili
	    </f:facet>  
	    <h:panelGrid columns="1" style="width:100%" cellpadding="5">    
	        <h:outputText value="Nome: #{pacchettoDTO.nome}" /> 	         
	        <h:outputText value="Destinazione: #{pacchettoDTO.destinazione}" />	  
	        <h:outputText value="Data di partenza: #{pacchettoDTO.dataPartenza}"/>	
	        <h:outputText value="Data di arrivo: #{pacchettoDTO.dataArrivo}"/>	 
	        <h:outputText value="Hotel: #{pacchettoDTO.hotel}"/>	     
	        <h:outputText value="Prezzo: #{pacchettoDTO.prezzo}" />         
	    </h:panelGrid>   
	</p:carousel>  
	<h:form>
		<h:outputLabel for="nome">*Nome:</h:outputLabel>
		<p:inputText id="nome" value="#{pacchettoBean.pacchettoDTO.nome}"/>
		<p:message for="nome" /> 
		<p:commandButton value="Elimina" action="#{pacchettoBean.elimina()}"/>
	</h:form>
</body> 
</html>
